/*******************************************************************************
* Copyright (c) 2010, 2018 西安秦晔信息科技有限公司
* Licensed under the Apache License, Version 2.0 (the "License");
*    you may not use this file except in compliance with the License.
*    You may obtain a copy of the License at
*
*       http://www.apache.org/licenses/LICENSE-2.0
*
*    Unless required by applicable law or agreed to in writing, software
*    distributed under the License is distributed on an "AS IS" BASIS,
*    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*    See the License for the specific language governing permissions and
*    limitations under the License.
*******************************************************************************/
package com.qinyeit.serviceapp.entity;

import lombok.Builder;
import lombok.experimental.Tolerate;

import javax.persistence.*;

/**
 * ClassName: DishesSpecificationRelation <br/>
 * Function: 菜品规格关系 <br/>
 * date: 2018-11-23 13:43:55 <br/>
 *
 * @author liuwenjin
 * @version  1.0
 * @since JDK 1.8
 */
@Builder
@Entity
@Table(name="dishes_specification_relations")
public class DishesSpecificationRelation extends MerchantGroupBaseEntity<Long> {

	private static final long serialVersionUID = 1L;

	// 菜品库 
    @Column(name="store_id")
	private Long storeId = null;

	// 菜品 
    @Column(name="dishes_id")
	private Long dishesId = null;

	// 规格
    @Column(name="spec_id")
	private Long specId = null;
	// 规格名称
    @Column(name="spec_name")
	private String specName = null;

	// 单价 
    @Column(name="price",scale=2)
	private Double price = null;

	// 会员价格 
    @Column(name="vip_price",scale=2)
	private Double vipPrice = null;

	// 是否默认 
    @Column(name="def")
	private Boolean def = null;


	@Tolerate
	public DishesSpecificationRelation() {
		
	}
    @Tolerate
	public DishesSpecificationRelation(Long id){
    	super.setId(id);
    }
	
	/**
	 * 获取菜品库
	 */
	public Long getStoreId() {
		return this.storeId;
	}

    /**
     * 设置菜品库
     */
	public DishesSpecificationRelation setStoreId(Long storeId) {
		this.storeId = storeId;
		return this;
	}

	/**
	 * 获取菜品
	 */
	public Long getDishesId() {
		return this.dishesId;
	}

    /**
     * 设置菜品
     */
	public DishesSpecificationRelation setDishesId(Long dishesId) {
		this.dishesId = dishesId;
		return this;
	}
	/**
	 * 获取单价
	 */
	public Double getPrice() {
		return this.price;
	}

    /**
     * 设置单价
     */
	public DishesSpecificationRelation setPrice(Double price) {
		this.price = price;
		return this;
	}

	/**
	 * 获取会员价格
	 */
	public Double getVipPrice() {
		return this.vipPrice;
	}

    /**
     * 设置会员价格
     */
	public DishesSpecificationRelation setVipPrice(Double vipPrice) {
		this.vipPrice = vipPrice;
		return this;
	}

	/**
	 * 获取是否默认
	 */
	public Boolean getDef() {
		return this.def;
	}

    /**
     * 设置是否默认
     */
	public DishesSpecificationRelation setDef(Boolean def) {
		this.def = def;
		return this;
	}

	public Long getSpecId() {
		return specId;
	}

	public void setSpecId(Long specId) {
		this.specId = specId;
	}

	public String getSpecName() {
		return specName;
	}

	public void setSpecName(String specName) {
		this.specName = specName;
	}
}
